﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ListStaff.aspx.cs" Inherits="_Default" MasterPageFile="~/Manager/Manager.master" Title = "List of Staff"%>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.2.Export, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView.Export" tagprefix="dx" %>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent" >
    <p>
        <table style="width:100%;">
            <tr>
                <td>
                    <table style="width:100%;">
                        <tr>
                            <td class="style10">
                                <dx:ASPxButton ID="btExportPDF" runat="server" 
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                                    onclick="btExportPDF_Click" 
                                    SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" Text="Export to PDF" 
                                    Width="129px">
                                </dx:ASPxButton>
                            </td>
                            <td class="style6">
                                <dx:ASPxButton ID="btExportXLS" runat="server" 
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                                    onclick="btExportXLS_Click" 
                                    SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" Text="Export to XLS" 
                                    Width="128px">
                                </dx:ASPxButton>
                            </td>
                            <td class="style5">
                                <dx:ASPxButton ID="btExportXLSX" runat="server" 
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx" 
                                    onclick="btExportXLSX_Click" 
                                    SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css" 
                                    Text="Export to XLSX" Width="128px">
                                </dx:ASPxButton>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                                                
                <table style="width:100%;">
                                    <tr>
                                        <td class="style7">
                                            &nbsp;</td>
                                        <td class="style8">
                                            &nbsp;</td>
                                        <td class="style9">
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        </table>
            </tr>
            <tr>
                <td colspan="3">
                    <dx:ASPxGridView ID="gird" runat="server" AutoGenerateColumns="False" 
                        ClientInstanceName="gird" DataSourceID="SqlDataSource1" KeyFieldName="StaffID" 
                        Width="100%" CssFilePath="~/App_Themes/DevEx/{0}/styles.css" 
                        CssPostfix="DevEx">
                        <Columns>
                            <dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0">
                            </dx:GridViewCommandColumn>
                            <dx:GridViewDataTextColumn FieldName="StaffID" ReadOnly="True" VisibleIndex="1">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="Password" VisibleIndex="2">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="Firstname" VisibleIndex="3">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="Lastname" VisibleIndex="4">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="Gender" VisibleIndex="5">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataDateColumn FieldName="Birthdate" VisibleIndex="6">
                            </dx:GridViewDataDateColumn>
                            <dx:GridViewDataTextColumn FieldName="Address" VisibleIndex="7">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="Phone" VisibleIndex="8">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="Email" VisibleIndex="9">
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <Settings ShowFilterRow="True" ShowGroupPanel="True" />
                        <Images SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
                            <LoadingPanelOnStatusBar Url="~/App_Themes/DevEx/GridView/StatusBarLoading.gif">
                            </LoadingPanelOnStatusBar>
                            <LoadingPanel Url="~/App_Themes/DevEx/GridView/Loading.gif">
                            </LoadingPanel>
                        </Images>
                        <ImagesFilterControl>
                            <LoadingPanel Url="~/App_Themes/DevEx/GridView/Loading.gif">
                            </LoadingPanel>
                        </ImagesFilterControl>
                        <Styles CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx">
                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                            </Header>
                            <LoadingPanel ImageSpacing="5px">
                            </LoadingPanel>
                        </Styles>
                        <StylesEditors ButtonEditCellSpacing="0">
                        </StylesEditors>
                    </dx:ASPxGridView>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:Institte_of_Fine_ArtsConnectionString %>" 
                        SelectCommand="SELECT * FROM [Staff]"></asp:SqlDataSource>
                    <dx:ASPxGridViewExporter ID="girdExport" runat="server" 
                        ExportedRowType="Selected" GridViewID="gird">
                    </dx:ASPxGridViewExporter>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    </p>
</asp:Content>
<asp:Content ID="Content1" runat="server" contentplaceholderid="HeadContent">
    <style type="text/css">
        .style5
        {
            width: 123px;
        }
        .style6
        {
            width: 116px;
        }
        .style7
        {
            width: 98px;
        }
        .style8
        {
            width: 117px;
        }
        .style9
        {
            width: 158px;
        }
        .style10
        {
            width: 60px;
        }
        </style>
</asp:Content>
